<!--# include Template('header'); #-->
<!--header----main-->
<link href="css/search.css" rel="stylesheet" type="text/css" />
<div id="content">
  <div id="left" style="width:670px;">
<!--搜索开始-->
      <div class="topichead">
        <ul>
          <li><a id="first" class="here">资源搜索</a></li>
        </ul>
      </div>
<form action="search.php" method="post">
<div id="scontent">
<h3>
<input name="method" type="radio" value="1" checked="checked" onclick="showSearch(1);" />
查找{$very[contentName]}
<input type="radio" name="method" value="2" onclick="showSearch(2);" />
查找单个文件</h3>
<div id="searchbox">
	<div class=sw_b3>
		<div class=sw_b2>
			<div class=sw_b1>
			<input class="sw_qbox" id="keyword" title="搜索" name="keyword" />
			<input class="sw_qbtn" id="sb_form_go" title="搜索" tabindex=0 type=submit name=go value="" />
			</div>
		</div>
	</div>
</div>
<div id="searchmethod">
<script language="javascript" src="script/calendar.js"></script>
<script language="javascript" src="script/MyCalendar.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody id="advance_search">
  <tr>
    <td width="110">所属目录</td>
    <td><select name="cid" id="search_cid" style="$show1">
      <option value="">所有目录</option>
      
		$cate_select
		
    </select></td>
  </tr>
  <tr id="s1" style="display:none;">
    <td>文件类型</td>
    <td><select name="type" id="search_rid">
      <option value="">全部文件</option>
      <!--# foreach($restype as $rid => $res){#-->
      <option value="$rid">$res[typename]</option>
      <!--#}#-->
    </select></td>
  </tr>
  <tr>
    <td>上传者</td>
    <td><input name="publisher" type="text" class="input" id="publisher" /></td>
  </tr>
  <tr>
    <td>上传时间</td>
    <td><input name="starttime" id="starttime" type="text" class="input" onclick="setNewDay(this);" size="15"> 之后 
       <input name="endtime" id="endtime" type="text"  class="input" onclick="setNewDay(this);" size="15"> 之前
      上传的{$very[contentName]} </td>
  </tr>
  <tr id="s2" style="display:none;">
    <td>文件大小</td>
    <td><input type="radio" name="filesize_t" value="1" />
      大于 
        <input name="filesize_t" type="radio" value="2" checked="checked" />
        小于 
        <input name="filesize" type="text" class="input" size="8" /> 
        MB</td>
  </tr>
</tbody>
</table>

</div>
<div style="text-align:center">
  <input name="advance" type="hidden" id="advance" value="1" />
  <input type="submit" name="upbtn" id="upbtn"  value="开始搜索！" class="button" /></div>

</div>
</form>
<!--搜索结束-->
    
    <!--首页内容列表-->
    <div id="bottom_topic">
      <ul>
        <li id="new_artical">
          <h4>最新上传</h4>
          <ul>
<!--# $array = $cms::thread("num:15;mid:1;");#-->
<loop>
<li><span><a href="list.php?cid=$val[cid]">[{$catedb[$val[cid]][cname]}]</a></span> <a href="view.php?cid=$val[cid]&tid=$val[tid]">{@substrs($val[title],46)@}</a></li>
</loop>
          </ul>
        </li>
        <li id="hot_artical">
          <h4>热门{$very[contentName]}</h4>
          <ul>
<!--# $array = $cms::thread("num:15;mid:1;order:hits");#-->
<loop>
<li><span><a href="list.php?cid=$val[cid]">[{$catedb[$val[cid]][cname]}]</a></span> <a href="view.php?cid=$val[cid]&tid=$val[tid]">{@substrs($val[title],50)@}</a></li>
</loop>
          </ul>
        </li>
      </ul>
    </div>
  </div>
  <div class="right">
  <!--# include Template('sidebar-type'); #-->
  <!--# include Template('sidebar-top'); #-->
  <!--# include Template('sidebar-faq'); #-->
  </div>
</div>
<div class="clear"></div>
<iframe id="content-frame" name="main" width="0" height="0" frameborder="0" scrolling="yes" style="overflow: visible;"></iframe>
<script language="javascript">
function showSearch(v)
{
	if (v == 2)
	{
		var style = '';
	}
	else if (v == 1)
	{
		var style = 'none';
	}
	document.getElementById('s1').style.display = style;
	document.getElementById('s2').style.display = style;
}
</script>
<!---main----foot-->
<!--# include Template('foot');#-->
